<?php

use Illuminate\Database\Seeder;

class CommentSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //循环插入数据
        $data=[];

        for($i=0;$i<200;$i++){
        	$upd=[];
        	$upd['name'] = str_random(10);
        	$upd['comment'] = Hash::make('fdsvfrwcs');
        	$data[] = $upd;
        }
        DB::table('comments')->insert($data);
    }
}
